/*
 * @Description: 状态管理
 * @Version: 1.0
 * @Author: tao
 * @Date: 2021-01-20 21:03:47
 * @LastEditors: tao
 * @LastEditTime: 2021-03-24 00:26:43
 */
import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters.js';
import mutations from './mutations';

Vue.use(Vuex)

const state = {
  status: null,
  isLogin: false,
  power: [],
  routeList: [],
  userId: null,
  userName: null,
  allTypeList: [],
  token: null,
  type: 0
}

const store = new Vuex.Store({
  state,
  getters,
  mutations
})

export default store